package com.hotelvp.tonight.prefs;

import android.content.Context;

public class UserPrefs extends BasePrefs
{
  private static final String BOOK_SOURCE = "book_source";
  private static final String CANCEL_ORDER_CONFUNM = "cnfnum";
  private static final String CASH_MIN_AMOUNT = "cash_min_amount";
  private static final String CLIENT_CODE = "client_code";
  private static final String FIRST_TIME_START = "first_time_start";
  private static final String GUEST_FIRST = "guest_first";
  private static final String GUEST_FOURTH = "guest_fourth";
  private static final String GUEST_SECOND = "guest_second";
  private static final String GUEST_THIRD = "guest_third";
  private static final String LAST_CITY_ID = "last_city_id";
  private static final String LAST_CITY_NAME = "last_city_name";
  private static final String LAST_CONTACT_NAME = "last_contact_name";
  private static final String LAST_CONTACT_PHONE = "last_contact_phone";
  private static final String LAST_LOGOUT_TIME = "last_logout_time";
  private static final String LEARN_PAGE = "learn_pag";
  private static final String LIST_FLG = "list_flg";
  private static final String PAYMENT_TYPE = "payment_type";
  private static final String PHONE_NUMBER = "phone_number";
  private static final String PREFS_NAME = "UserPrefs";
  private static final String SELECTED_TICKET_AMT = "selected_ticket_amt";
  private static final String SELECTED_TICKET_CODE = "selected_ticket_code";
  private static final String SELECTED_TICKET_USERCODE = "selected_ticket_usercode";
  private static final String SERVICE_TEL = "service_tel";
  private static final String SHORTCUT_CREATE = "shortcut_create";
  private static final String UNIONPAY_URL = "unionpay_url";
  private static final String USE_CODE = "use_code";
  private static final String VERSION_CODE = "version_code";
  private static final String VERSION_NAME = "version_name";

  private UserPrefs(Context paramContext)
  {
    super(paramContext, "UserPrefs");
  }

  public static UserPrefs get(Context paramContext)
  {
    return new UserPrefs(paramContext);
  }

  public String getBookSource()
  {
    return getString("book_source", null);
  }

  public String getCancelOrderConfum()
  {
    return getString("cnfnum", null);
  }

  public int getCashMinAmount()
  {
    return getInt("cash_min_amount", 0);
  }

  public String getClientCode()
  {
    return getString("client_code", null);
  }

  public boolean getFirstTimeStart()
  {
    return getBoolean("first_time_start", true);
  }

  public String getGuestFirst()
  {
    return getString("guest_first", null);
  }

  public String getGuestFourth()
  {
    return getString("guest_fourth", null);
  }

  public String getGuestSecond()
  {
    return getString("guest_second", null);
  }

  public String getGuestThird()
  {
    return getString("guest_third", null);
  }

  public String getLastCityId()
  {
    return getString("last_city_id", null);
  }

  public String getLastCityName()
  {
    return getString("last_city_name", null);
  }

  public String getLastContactName()
  {
    return getString("last_contact_name", null);
  }

  public String getLastContactPhone()
  {
    return getString("last_contact_phone", null);
  }

  public String getLastLogoutTime()
  {
    return getString("last_logout_time", null);
  }

  public boolean getLearnPage()
  {
    return getBoolean("learn_pag", false);
  }

  public int getListFlg()
  {
    return getInt("list_flg", 0);
  }

  public String getPaymentType()
  {
    return getString("payment_type", null);
  }

  public String getPhoneNumber()
  {
    return getString("phone_number", null);
  }

  public float getSelectTicketAmt()
  {
    return getFloat("selected_ticket_amt", 0.0F);
  }

  public String getSelectedTicketCode()
  {
    return getString("selected_ticket_code", null);
  }

  public String getSelectedTicketUserCode()
  {
    return getString("selected_ticket_usercode", null);
  }

  public String getServiceTel()
  {
    return getString("service_tel", null);
  }

  public String getShortcutCreate()
  {
    return getString("shortcut_create", null);
  }

  public String getUnionpayUrl()
  {
    return getString("unionpay_url", null);
  }

  public String getUseCode()
  {
    return getString("use_code", null);
  }

  public int getVersionCode()
  {
    return getInt("version_code", -1);
  }

  public String getVersionName()
  {
    return getString("version_name", null);
  }

  public void setBookSource(String paramString)
  {
    putString("book_source", paramString);
  }

  public void setCancelOrderConfum(String paramString)
  {
    putString("cnfnum", paramString);
  }

  public void setCashMinAmount(int paramInt)
  {
    putInt("cash_min_amount", paramInt);
  }

  public void setClientCode(String paramString)
  {
    putString("client_code", paramString);
  }

  public void setFirstTimeStart(boolean paramBoolean)
  {
    putBoolean("first_time_start", paramBoolean);
  }

  public void setGuestFirst(String paramString)
  {
    putString("guest_first", paramString);
  }

  public void setGuestFourth(String paramString)
  {
    putString("guest_fourth", paramString);
  }

  public void setGuestSecond(String paramString)
  {
    putString("guest_second", paramString);
  }

  public void setGuestThird(String paramString)
  {
    putString("guest_third", paramString);
  }

  public void setLastCityId(String paramString)
  {
    putString("last_city_id", paramString);
  }

  public void setLastCityName(String paramString)
  {
    putString("last_city_name", paramString);
  }

  public void setLastContactName(String paramString)
  {
    putString("last_contact_name", paramString);
  }

  public void setLastContactPhone(String paramString)
  {
    putString("last_contact_phone", paramString);
  }

  public void setLastLogoutTime(String paramString)
  {
    putString("last_logout_time", paramString);
  }

  public void setLearnPage(Boolean paramBoolean)
  {
    putBoolean("learn_pag", paramBoolean.booleanValue());
  }

  public void setListFlg(int paramInt)
  {
    putInt("list_flg", paramInt);
  }

  public void setPaymentType(String paramString)
  {
    putString("payment_type", paramString);
  }

  public void setPhoneNumber(String paramString)
  {
    putString("phone_number", paramString);
  }

  public void setSelectedTicketAmt(float paramFloat)
  {
    putFloat("selected_ticket_amt", paramFloat);
  }

  public void setSelectedTicketCode(String paramString)
  {
    putString("selected_ticket_code", paramString);
  }

  public void setSelectedTicketUserCode(String paramString)
  {
    putString("selected_ticket_usercode", paramString);
  }

  public void setServiceTel(String paramString)
  {
    putString("service_tel", paramString);
  }

  public void setShortcutCreate(String paramString)
  {
    putString("shortcut_create", paramString);
  }

  public void setUnionpayUrl(String paramString)
  {
    putString("unionpay_url", paramString);
  }

  public void setUseCode(String paramString)
  {
    putString("use_code", paramString);
  }

  public void setVersionCode(int paramInt)
  {
    putInt("version_code", paramInt);
  }

  public void setVersionName(String paramString)
  {
    putString("version_name", paramString);
  }
}